package dao;

import entity.Dept;
import entity.Emp;
import entity.EmpVo;
import entity.Login;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

/**
 * Dao 接口
 */
public interface Dao {
    /**
     * @param account
     * @return
     * @throws SQLException
     */
    EmpVo selectEmpByAccount(@Param("account") String account) throws SQLException;

    /**
     * @return
     * @throws SQLException
     */
    List<Dept> selectAllDept(@Param("did") int did) throws SQLException;

    /**
     * @param did
     * @return
     * @throws SQLException
     */
    List<EmpVo> selelctEmpByDept(@Param("did") int did, @Param("from") int from, @Param("eid") int eid) throws SQLException;

    /**
     * @param did
     * @return
     * @throws SQLException
     */
    int selectEmpCountByDept(@Param("did") int did) throws SQLException;


}
